#define _CRT_SECURE_NO_WARNINGS 1

class Solution {
public:
    int minOperations(vector<int>& nums, int k) {
        int res = 0;
        for (auto& e : nums)
        {
            if (e < k) ++res;
        }
        return res;
    }
};